import request from '@apis/request'

// 获取用户列表
const gets = ()=> { return request({ url: 'users', method: 'get' })  }

// 禁用
const disable = (id)=> { return request({ url: `users/${id}/disable`, method: 'get' }) }

// 启用
const enable = (id)=> { return request({ url: `users/${id}/enable`, method: 'get' }) }

// 锁定
const lock = (id)=> { return request({ url: `users/${id}/lock`, method: 'get' }) }

// 解锁
const unlock = (id)=> { return request({ url: `users/${id}/unlock`, method: 'get' }) }

export default {
  gets,
  disable,
  enable,
  lock,
  unlock
}